Method and apparatus for sharing an interrupt between disk drive interfaces

ABSTRACT

An apparatus for sharing an interrupt between a controller for a parallel storage device interface and a controller for a serial storage device interface includes interrupt conditioning circuitry that masks an interrupt signal coming from the parallel storage device interface if no storage device is coupled to the parallel storage device interface. The masking of the parallel storage device interface interrupt of no storage device is coupled to the parallel storage device interface allows the controller for the serial storage device interface to share the interrupt traditionally assigned to the parallel storage device interface.

FIELD OF THE INVENTION

[0001] The present invention pertains to the field of computer systems. More particularly, this invention pertains to the field of sharing interrupts between disk drive controllers.

[0002] BACKGROUND OF THE INVENTION

[0003] Computer systems typically include one or more disk drive devices. These drive devices are coupled to the system via controllers that are typically embedded in the system chipset. Usually, two drive devices can be supported by a single controller. Each of the drives coupled to the controller can signal an interrupt to the controller by causing an interrupt line to become asserted. The two drives coupled to the controller share a single interrupt line. Once an interrupt has been signaled, an interrupt handler routine running on a microprocessor determines which of the drives asserted the interrupt line.

[0004] Many computer systems provide two drive controllers that provide support for a total of four drives. One interrupt is provided for each drive controller. Most computer systems set aside two interrupts for hard drive support. The software written for these systems anticipates that only these two interrupts will be assigned to hard drive controllers.

[0005] In an effort to improve system performance and to reduce system costs, new drive interface technologies are being developed. It is likely that emerging drive interface technologies will need to co-exist with the current drive controllers described above. A problem exists in that in order for the newer technologies to co-exist with the current drive controllers, either additional interrupts will be required for the drive controllers or a technique for sharing the two available interrupts will be required. In order to support the new technologies and to avoid changing a large established base of software, it is more desirable to provide circuitry for sharing interrupts between the newer and the current drive controllers.

BRIEF DESCRIPTION OF THE DRAWINGS

[0006] The invention will be understood more fully from the detailed description given below and from the accompanying drawings of embodiments of the invention which, however, should not be taken to limit the invention to the specific embodiments described, but are for explanation and understanding only.

[0007]FIG. 1 is a block diagram of a computer system including a disk drive controller unit coupled to both a parallel disk drive interconnect and a serial disk drive interconnect.

[0008]FIG. 2 is a block diagram of one embodiment of a disk drive controller unit including a parallel disk drive controller and a serial disk drive controller.

[0009]FIG. 3 is a block diagram of one embodiment of an interrupt conditioning logic unit.

[0010]FIG. 4 is a block diagram of an additional embodiment of an interrupt conditioning logic unit.

[0011]FIG. 5 is a block diagram of another embodiment of an interrupt conditioning logic unit.

[0012]FIG. 6 is a block diagram of a further embodiment of an interrupt conditioning logic unit.

[0013]FIG. 7 is a flow diagram of one embodiment of a method for sharing an interrupt between two disk drive controllers.

DETAILED DESCRIPTION

[0014] An apparatus for sharing an interrupt between a controller for a parallel storage device interface and a controller for a serial storage device interface includes interrupt conditioning circuitry that masks an interrupt signal coming from the parallel storage device interface if no storage device is coupled to the parallel storage device interface. The masking of the parallel storage device interface interrupt if no storage device is coupled to the parallel storage device interface allows the controller for the serial storage device interface to share the interrupt traditionally assigned to the parallel storage device interface.

[0015] Although the embodiments that follow describe hard disk controllers and interfaces, other embodiments are possible using controllers and interfaces for other types of storage devices, including, but not limited to, optical drives, tape drives, floppy disk drives, etc.

[0016]FIG. 1 is a block diagram of a system 100 that includes a processor 110 coupled to a system logic device 120. The system logic device 120 is further coupled to a graphics controller 130 and a system memory 140. The system logic device 120 is also coupled to a system input/output hub 150. The system input/output hub 150 includes a drive controller unit 200 that is discussed more fully below in connection with FIG. 2. The drive controller unit 200 is coupled to a disk drive 160 via a parallel disk drive interconnect 165. The disk drive controller unit 200 is also coupled to a disk drive 170 via serial disk drive interconnect 175. The disk drive 160 is optional for this example embodiment.

[0017]FIG. 2 is a block diagram including the disk drive controller unit 200. The disk drive control unit 200 includes a parallel disk drive controller 210 and a serial disk drive controller 220. The serial disk drive controller 220 is coupled to the disk drive 170 by way of a the serial disk drive interconnect 175 and a serial disk drive interface 250. The parallel disk drive controller 210 is coupled to the disk drive 160 by way of the parallel disk drive interconnect 165 and a parallel disk drive interface 240. The parallel disk drive interconnect 165 includes multiple address/data/control lines 166 and a parallel disk drive interrupt signal 167. The parallel disk drive interrupt signal 167 is pulled up to a logically high voltage level VCC through a resistor 260 when the disk drive 160 is not driving the parallel disk drive interrupt signal 167 to a logically low voltage level. If disk drive 160 is not installed, then the parallel disk drive interrupt signal 167 is pulled up to VCC.

[0018] The disk drive controller unit 200 also includes an interrupt conditioning logic unit (ICL) 230. The ICL 230 receives the parallel disk drive interrupt signal 167 and an interrupt pending signal 221 from the serial disk drive controller 220. In this example embodiment, the serial disk drive interconnect 175 does not have a dedicated interrupt line. Interrupts are communicated from the disk drive 170 to the serial disk drive controller 220 by way of interrupt messages delivered over the serial disk drive interconnect 175. When an interrupt message is received at the serial disk drive controller 220, the serial disk drive controller 220 asserts the interrupt pending signal 221.

[0019] The ICL 230 serves to block the parallel disk drive interrupt signal 167 when the disk drive 160 is not installed. If the disk drive 160 is installed, then the parallel disk drive interrupt signal 167 is passed through to the parallel disk drive controller interrupt input 231. The ICL also passes the interrupt pending signal 221 through to the parallel disk drive controller interrupt input 231. By blocking the parallel disk drive interrupt signal 167 when no drive is coupled to the parallel disk drive interface 240, the ICL 230 allows the serial disk drive controller 220 to share the parallel disk drive controller interrupt input 231.

[0020] Without the ICL, interrupt sharing would only be possible when both the disk drive 160 and 170 are installed. This is due to the parallel disk drive interrupt signal 167 being pulled to an asserted state when no drive is installed. Typical prior computer systems deal with the asserted disk drive interrupt signal when no drive is installed by masking the interrupt at the system interrupt controller. When more than one disk drive controllers share the interrupt, however, simply masking the interrupt at the system interrupt controller would make sharing impossible.

[0021]FIG. 3 is a block diagram of one embodiment of the ICL 230. The ICL 230 includes an AND gate 233, an OR gate 234, and a mask register 232. When the computer system 100 is first started, the system basic input/output system (BIOS), which is a software agent running on the processor 110, polls the disk drive interfaces to determine which disk drives are installed.

[0022] Although the current embodiment describes the BIOS polling the disk drive interfaces to determine which disk drives are installed, other embodiments are possible where a state machine implemented in hardware conducts the polling operations without software intervention.

[0023] If no drive is found to be coupled to the parallel disk drive interface 240, then the BIOS writes a “1” to the mask register 232. The value of the mask register is inverted and delivered to one input of the AND gate 233. The other input of the AND gate 233 receives the parallel disk drive interrupt signal 167. When the mask register 232 contains a “1”, the output of the AND gate 233 will always show a “0”, thereby masking the parallel disk drive interrupt 167. When the mask register 232 contains a “0”, then whatever value is delivered to the AND gate 233 by the parallel disk drive interrupt signal 167 is passed through to the OR gate 234. Therefore, the ICL 230 will always pass the interrupt pending signal 221 to the parallel disk drive controller interrupt input 231 and will pass the parallel disk drive interrupt signal 167 to the parallel disk drive controller interrupt input 231 only when the BIOS has detected that a drive is coupled to the parallel disk drive interface 240 and the mask register 232 is not set.

[0024]FIG. 4 is a block diagram of another embodiment of an ICL unit. This example embodiment may be used interchangeably with the embodiment discussed above in connection with FIG. 3. The ICL 400 of FIG. 4 is based around an eight bit decoder 410. The decoder 410 receives at its input C the interrupt pending signal 221 from the serial disk drive controller 220. The B input receives the parallel disk drive interrupt signal 167. The A input receives the inverted output of a flip-flop 430. If the BIOS fails to detect a disk drive coupled to the parallel disk drive interface 240, then a “1” is delivered to the flip-flop 430 via the mask signal 431. The write signal 432 is used to clock in the value delivered over the mask signal 431.

[0025] If no drive is detected on the parallel disk drive interface, then the A input of the decoder 410 will receive a “0” from the flip-flop 430. When the A input receives a “0” and the parallel disk drive interrupt 167 is asserted, none of the decoder outputs coupled to the OR gate 420 will become asserted. Therefore, the parallel disk drive interrupt 167 is masked. Whenever the interrupt pending signal 221 is asserted, one of the decoder outputs coupled to the OR gate 420 is guaranteed to become asserted. In this manner, the interrupt pending signal 221 from the serial disk drive controller 220 is always passed through to the parallel disk drive controller interrupt input 231 and the parallel disk drive interrupt 167 is passed on to the parallel disk drive controller interrupt input only if the BIOS has detected the presence of a disk drive on the parallel disk drive interface 240.

[0026]FIG. 5 is a block diagram of an additional embodiment of an ICL unit. The ICL 500 of FIG. 5 is based around a dynamic random access memory look-up table (LUT) 510. The LUT 510 includes a write port 512 that is accessible to the processor 110 via a CPU access path 515. The BIOS can cause appropriate values to be written into the LUT 510 where the values are based on whether or not the BIOS has detected a disk drive coupled to the parallel disk drive interface 240. The values stored in the LUT 510 are accessed via the address inputs A1 and A0. The A1 and A0 inputs are coupled to the parallel disk drive interrupt signal 167 and the interrupt pending signal 221, respectively. The value placed onto the output 513 depends on the states of the A1 and A0 inputs. By programming the LUT 510 with appropriate values, the LUT 510 can prevent the parallel disk drive interrupt signal 167 from being passed on to the parallel disk drive controller interrupt input 231 unless a disk drive has been detected on the parallel disk drive interface 240. Further, the LUT 510 will allow the interrupt pending signal 221 to always be passed on to the parallel disk drive controller interrupt input 231.

[0027]FIG. 6 is a block diagram of a further embodiment of an ICL based on a read-only memory (ROM) 610. The ICL 600 includes the ROM 610 and a flip-flop 630. The ICL 600 of FIG. 6 works in largely the same fashion as the LUT-based embodiment of FIG. 5. However, since the ROM 610 must be programmed prior to system operation and because the BIOS cannot change the values of the ROM 610, the flip-flop 630 is used to manipulate the values presented to the address inputs of the ROM 610 in order to access different storage locations depending on whether or not the BIOS has detected a disk drive coupled to the parallel disk drive interface 240. If no disk drive is detected, then the BIOS delivers a “1” to the mask 631 input to the flip-flop 630. The “1” is clocked into the flip-flop 630 via the write signal 632. The output of the flip-flop 630 is delivered to an address input of the ROM 610 along with the interrupt pending signal 221 and the parallel disk drive interrupt signal 167. The appropriate data is driven from the output 612 of the ROM 610 to the parallel disk drive controller interrupt input 231.

[0028]FIG. 7 is a flow diagram of one embodiment of a method for sharing an interrupt between two disk drive controllers. At block 710, a determination is made as to whether a disk drive is couple to a first disk drive interface. If a disk drive is detected, then at block 730 a first interrupt is delivered from the first disk drive interface to first disk drive controller interrupt input. If a drive is not detected at block 710, then at block 720 a mask bit is set. At block 740 the first interrupt is prevented from being delivered from the first disk drive interface to the first disk controller interrupt input. Lastly, at block 750, a second interrupt is delivered from a second disk drive controller to the first disk drive controller interrupt input.

[0029] In the foregoing specification the invention has been described with reference to specific exemplary embodiments thereof. It will, however, be evident that various modifications and changes may be made thereto without departing from the broader spirit and scope of the invention as set forth in the appended claims. The specification and drawings are, accordingly, to be regarded in an illustrative rather than in a restrictive sense.

[0030] Reference in the specification to “an embodiment,” “one embodiment,” “some embodiments,” or “other embodiments” means that a particular feature, structure, or characteristic described in connection with the embodiments is included in at least some embodiments, but not necessarily all embodiments, of the invention. The various appearances of “an embodiment,” “one embodiment,” or “some embodiments” are not necessarily all referring to the same embodiments. 

What is claimed is:
 1. An apparatus, comprising: a first storage device interface; a second storage device interface; a first controller coupled to the first storage device interface, the first controller including an interrupt signal input; a second controller coupled to the second storage device interface; and an interrupt conditioning unit to receive a first interrupt signal from the first storage device interface and to receive a second interrupt signal from the second controller, the interrupt conditioning unit to deliver the second interrupt signal to the first controller interrupt signal input, the interrupt conditioning unit further to deliver the first interrupt signal to the first controller interrupt signal input if a storage device is coupled to the first storage device interface, the interrupt conditioning unit to not deliver the first interrupt signal to the first controller interrupt signal input if no disk drive is coupled to the first storage device interface.
 2. The apparatus of claim 1, wherein the interrupt conditioning unit includes an AND gate and an OR gate, the AND gate having a first input coupled to the first interrupt signal and the AND gate having a second input coupled to a mask register, the mask register to store a value indicating whether or not a storage device is coupled to the first storage device interface, a first input of the OR gate coupled to an output of the AND gate and a second input of the OR gate coupled to the second interrupt signal, an output of the OR gate coupled to the first controller interrupt signal input.
 3. The apparatus of claim 2, wherein a value indicated by the mask register is inverted prior to delivery to the second input of the AND gate.
 4. The apparatus of claim 1, wherein the first storage device interface is a parallel interface.
 5. The apparatus of claim 4, wherein the second storage device interface is a serial interface.
 6. The apparatus of claim 5, wherein the second controller asserts the second interrupt signal in response to an interrupt message being received from the serial interface.
 7. A method, comprising: determining whether a storage device is coupled to a first storage device interface; setting a mask bit if no storage device is coupled to the first storage device interface; delivering a first interrupt from the first storage device interface to a first controller interrupt input if the mask bit is not set; preventing the first interrupt from being delivered from the first storage device interface to the first controller interrupt input if the mask bit is set; and delivering a second interrupt from a second controller to the first controller interrupt input.
 8. The method of claim 7, further comprising delivering an interrupt message from a second storage device interface to the second controller.
 9. The method of claim 8, wherein delivering an interrupt message from a second storage device interface to the second controller includes delivering an interrupt message from a serial interface to the second controller.
 10. A system, comprising: a processor; and a system logic device coupled to the processor, the system logic device including a first storage device interface, a second storage device interface coupled to a second storage device, a first controller coupled to the first storage device interface, the first controller including an interrupt signal input, a second controller coupled to the second storage device interface, and an interrupt conditioning unit to receive a first interrupt signal from the first storage device interface and to receive a second interrupt signal from the second controller, the interrupt conditioning unit to deliver the second interrupt signal to the first controller interrupt signal input, the interrupt conditioning unit further to deliver the first interrupt signal to the first controller interrupt signal input if a first storage device is coupled to the first storage device interface, the interrupt conditioning unit to not deliver the first interrupt signal to the first controller interrupt signal input if no storage device is coupled to the first storage device interface.
 11. The system of claim 10, wherein the interrupt conditioning unit includes an AND gate and an OR gate, the AND gate having a first input coupled to the first interrupt signal and the AND gate having a second input coupled to a mask register, the mask register to store a value indicating whether or not a storage device is coupled to the first storage device interface, a first input of the OR gate coupled to an output of the AND gate and a second input of the OR gate coupled to the second interrupt signal, an output of the OR gate coupled to the first controller interrupt signal input.
 12. The system of claim 11, wherein a value indicated by the mask register is inverted prior to delivery to the second input of the AND gate.
 13. The system of claim 10, wherein the first storage device interface is a parallel interface.
 14. The system of claim 13, wherein the second storage device interface is a serial interface.
 15. The system of claim 14, wherein the second controller asserts the second interrupt signal in response to an interrupt message being received from the serial interface. 